package br.edu.ufcg.greengrid;

import java.io.IOException;

import br.edu.ufcg.greengrid.workload.RandomMachineAvailabilityInputGenerator;

public class MainRandomMachineAvailabilityInputGenerator {

	public static void main(String[] args) throws IOException {
		
		if(args.length != 3){
			System.err.println("Error! Usage: <inputFileName> <outputFileName> <numMachines>");
			System.exit(1);
		}
		
		RandomMachineAvailabilityInputGenerator rmaig = new RandomMachineAvailabilityInputGenerator();

		int index = 0;
		String inputFileName = args[index++];
		String outputFileName = args[index++];
		int numMachines = Integer.valueOf(args[index++]);
		
		rmaig.parse(inputFileName, outputFileName, numMachines);
	}
	
}
